<div class="group0">
<?php
	$tblCategory = new Zendvn_Models_Category();
	$tblMenu = $tblCategory->listItem($this->arrParam,array('parents'=>$this->arrParam['cid'],'task' => 'block-child'));
	if(!empty($tblMenu)){
		foreach ($tblMenu as $key => $item){
	        $name = $item['name'];
			$link = $this->baseUrl('/products/index/category/cid/' 
									. $item['id'] . '/name/' 
									. $item['alias']);
			
			if(!empty($item['picture'])){
	            $linkImg	= FILES_URL . '/category/images450x450/' . $item['picture'];
	            $picture 	= '<img height="110" width="210" src="'. $linkImg .'" alt="'.$val['name'].'" />';
	        }else{
	            $linkImg	= FILES_URL . '/category/images450x450/no-image.jpg';
	            $picture 	= '<img height="110" width="210" src="'. $linkImg .'" alt="'.$val['name'].'" />';
	        }
	                    			
			$cls = 'col-1';	
			if(($key+1)%3 == 0){
				$cls = 'col-3';	
			}
?>
<div class="box-cnt <?php echo $cls?> width-32">
	<div class="cnt border-1">
		<div class="bor-img">
			<a title="<?php echo $val['name']?>" href="<?php echo $link?>"><?php echo $picture?></a>
		</div>
		<h2><a title="<?php echo $val['name']?>" href="<?php echo $link?>"><?php echo $name?></a></h2>
	</div>
</div>
<?php }}?>                       
</div> 